
package com.weavernorth.retailExperienceAward;
import com.weavernorth.retailExperienceAward.service.StoreRetailExpToSAP_dzService;
import com.weavernorth.util.Logger4jUtil;
import org.apache.commons.logging.Log;
import org.apache.log4j.Logger;
import weaver.interfaces.schedule.BaseCronJob;


/**
 * @Author: bruseewang
 * @Package: com.weavernorth.retailExperienceAward.ZddpfstjToSapTimmer
 * @date: 2020/6/4 16:01
 * @description: 终端店铺分数统计推送至SAP(店长and店员)
 */
public class ZddpfstjToSapTimmer extends BaseCronJob {
    public String cycle;
    public String getcycle() {
        return cycle;
    }
    public void setcycle(String cycle) {
        this.cycle = cycle;
    }
    @Override
    public void execute() {
        Logger log =Logger4jUtil.getLoggerByName("/Timmer/ZddpfstjToSapTimmer/");
        log.info("终端店铺分数统计传数至SAP接口执行开始----：");
        StoreRetailExpToSAP_dzService service=new StoreRetailExpToSAP_dzService();
        log.info("cycle参数="+Integer.parseInt(cycle));
        service.setCycle(Integer.parseInt(cycle));
        service.setLog(log);
        service.exeSendData();
        log.info("终端店铺分数统计传数至SAP接口执行结束----：");
    }

}
